]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
4 years agodbusServices/extensions: Split error page from window
Florian Müllner [Thu, 29 Jul 2021 22:26:05 +0000 (00:26 +0200)]
dbusServices/extensions: Split error page from window

The error UI comprises the bits that are actually custom. Splitting them
out from the off-the-shelf window makes it easier to replace the dialog
with libadwaita's dedicated preference window.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2012>

4 years agodbusServices/extensions: Split out prefs dialog
Florian Müllner [Thu, 29 Jul 2021 22:06:36 +0000 (00:06 +0200)]
dbusServices/extensions: Split out prefs dialog

We're about to make changes to the UI, so this seems to be a good
time to split GUI and service code.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2012>

4 years agodbus-services/extensions: Remove outdated requires
Florian Müllner [Sat, 8 Jan 2022 20:25:49 +0000 (21:25 +0100)]
dbus-services/extensions: Remove outdated requires

We are using GTK4, not GTK3 >= 3.20 ...

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2012>

4 years agoosk: Remove a duplicate key from Malayalam
Mohammed Sadiq [Tue, 8 Feb 2022 06:01:59 +0000 (11:31 +0530)]
osk: Remove a duplicate key from Malayalam

The same key has been included as the first item on the third row

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2162>

4 years agopowerProfiles: Remove support for power-profiles-daemon < 0.9.0
Bastien Nocera [Fri, 14 Jan 2022 11:27:57 +0000 (12:27 +0100)]
powerProfiles: Remove support for power-profiles-daemon < 0.9.0

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2101>

4 years agomain: Raise the NOFILE limit if a Wayland compositor
Olivier Fourdan [Wed, 19 Jan 2022 09:24:34 +0000 (10:24 +0100)]
main: Raise the NOFILE limit if a Wayland compositor

When being run as a Wayland compositor, raise the NOFILE limit to
mitigate the risk of running out of file descriptors.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2117>

4 years agoshell/app: Restore NOFILE limit
Olivier Fourdan [Wed, 19 Jan 2022 09:22:57 +0000 (10:22 +0100)]
shell/app: Restore NOFILE limit

Restore the nofile limit when launching apps so that they do not
inherit from the Shell's own limit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2117>

4 years agoshell: Restore NOFILE limit before restarting
Olivier Fourdan [Wed, 19 Jan 2022 09:18:06 +0000 (10:18 +0100)]
shell: Restore NOFILE limit before restarting

When restarting Shell, make sure to restore the original nofile limit so
that the new instance starts with the original value.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2117>

4 years agoutil: Restore the NOFILE limit before spawning apps
Olivier Fourdan [Wed, 19 Jan 2022 09:15:51 +0000 (10:15 +0100)]
util: Restore the NOFILE limit before spawning apps

Make sure the restore the original NOFILE limit prior to run the
commands so those don't inherit from the raised value.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2117>

4 years agoibusManager: Restore the NOFILE limit
Olivier Fourdan [Mon, 31 Jan 2022 09:40:04 +0000 (10:40 +0100)]
ibusManager: Restore the NOFILE limit

Use GLib's spawn_async() instead of Gio.SubprocessLauncher() which does
not support the child setup function to start ibus-daemon.

This way we can restore the NOFILE limit prior to run the ibus-daemon.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2117>

4 years agonetworkAgent: Restore the NOFILE limit
Olivier Fourdan [Wed, 19 Jan 2022 09:13:50 +0000 (10:13 +0100)]
networkAgent: Restore the NOFILE limit

Restore the original NOFILE limit prior to spawn the VPN helper.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2117>

4 years agodbusServices: Allow replacement
Florian Müllner [Thu, 3 Feb 2022 00:57:46 +0000 (01:57 +0100)]
dbusServices: Allow replacement

The REPLACE flag we currently pass is useless, as replacing the service
is disallowed when not started with the ALLOW_REPLACEMENT flag.

Fix this by adopting a more standard pattern where replacement is always
allowed, but only actually requested when `--replace` is passed on the
command line.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2152>

4 years agoUpdate Russian translation
Aleksandr Melman [Mon, 7 Feb 2022 18:33:25 +0000 (18:33 +0000)]
Update Russian translation

4 years agoUpdate Slovenian translation
Matej Urbančič [Mon, 7 Feb 2022 18:23:20 +0000 (18:23 +0000)]
Update Slovenian translation

4 years agodash: Use pin instead of favorites
Rachit Keerti Das [Sat, 29 Jan 2022 17:07:25 +0000 (22:37 +0530)]
dash: Use pin instead of favorites

Use the term 'pin' for adding new items to the dash
Note that this is only a string change.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4976

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2136>

4 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 7 Feb 2022 12:52:03 +0000 (13:52 +0100)]
Updated Spanish translation

4 years agobackground: Support dark wallpapers
Alexander Mikhaylenko [Sat, 27 Nov 2021 12:53:14 +0000 (17:53 +0500)]
background: Support dark wallpapers

See https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1174

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2137>

4 years agoUpdate Portuguese translation
Hugo Carvalho [Sun, 6 Feb 2022 22:36:31 +0000 (22:36 +0000)]
Update Portuguese translation

4 years agolookingGlass: Fix visual papercuts
Sam Hewitt [Fri, 4 Feb 2022 14:31:13 +0000 (11:01 -0330)]
lookingGlass: Fix visual papercuts

- change icon size to 16px
- give those icons a buttonized style

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2156>

4 years agolookingGlass: Turn toolbar icons into actual buttons
Florian Müllner [Fri, 4 Feb 2022 16:42:27 +0000 (17:42 +0100)]
lookingGlass: Turn toolbar icons into actual buttons

Yes, we can use reactive icons with a `button-press-event` handler,
but really, there's a standard control for that kind of behavior ...

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2156>

4 years agoUpdated Lithuanian translation
Aurimas Černius [Sun, 6 Feb 2022 15:04:40 +0000 (17:04 +0200)]
Updated Lithuanian translation

4 years agoUpdate Chinese (China) translation
Luming Zh [Sat, 5 Feb 2022 13:03:20 +0000 (13:03 +0000)]
Update Chinese (China) translation

4 years agodbusServices/notifications: Disallow acting on "foreign" IDs
Florian Müllner [Thu, 3 Feb 2022 01:34:37 +0000 (02:34 +0100)]
dbusServices/notifications: Disallow acting on "foreign" IDs

The Notify() and CloseNotification() methods act on a notification,
identified by the passed ID. Just like it makes sense to only emit
notification signals to the original sender, those methods should
be restricted to the notification owner.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5008

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2153>

4 years agodbusServices/notifications: Stop broadcasting signals
Florian Müllner [Thu, 3 Feb 2022 00:32:55 +0000 (01:32 +0100)]
dbusServices/notifications: Stop broadcasting signals

All fd.o Notifications signals are emitted for a particular notification,
so debugging aside, only the owner of said notification has a legitimate
reason to act on it.

So far we (and other implementations like the old notification-daemon)
have relied on the client-side to properly filter the signals (like
libnotify), but at least the QT implementation is known to not do
that.

Enforce correct client behavior by only emitting the signal to the
original sender.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5008

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2153>

4 years agotheme: Papercut fixes from 42 refresh
Sam Hewitt [Wed, 2 Feb 2022 18:17:42 +0000 (14:47 -0330)]
theme: Papercut fixes from 42 refresh

- simplified drawing functions
- refactored button drawing
- dropped arrow from all popovers
- cleaned out some legacy css
- fixed many of the issues in #4969

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2150>

4 years agostyle: Fix rounded button corners in RTL
Florian Müllner [Fri, 4 Feb 2022 19:46:49 +0000 (20:46 +0100)]
style: Fix rounded button corners in RTL

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5021

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2158>

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Fri, 4 Feb 2022 20:52:26 +0000 (20:52 +0000)]
Update Ukrainian translation

4 years agocalendar: Use symbolic icon for No Notifications
Sam Hewitt [Fri, 4 Feb 2022 16:59:36 +0000 (13:29 -0330)]
calendar: Use symbolic icon for No Notifications

- drop old assets
- use symbolic icon for no notifications

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2157>

4 years agoUpdate Galician translation
Fran Dieguez [Fri, 4 Feb 2022 14:57:27 +0000 (14:57 +0000)]
Update Galician translation

4 years agotheme: Remove icon resources from theme
Sam Hewitt [Mon, 31 Jan 2022 15:10:58 +0000 (11:40 -0330)]
theme: Remove icon resources from theme

- move all icons to the icons directory
- rename some icons to be more meaningful
- put all icons on a resource sheet
- update references to icon name changes
- deprecate icons for those in standard set

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2141>

4 years agokeyboard: Reindent key definitions
Florian Müllner [Mon, 31 Jan 2022 23:30:47 +0000 (00:30 +0100)]
keyboard: Reindent key definitions

... to match the non-legacy eslint config.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2141>

4 years agobuild: Replace array with dict
Florian Müllner [Mon, 31 Jan 2022 22:55:57 +0000 (23:55 +0100)]
build: Replace array with dict

It's more readable than "magic" indexes, and makes it easier to
provide fallback values for optional entries.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2141>

4 years agostatus/a11y: Update deprecated icon name
Sam Hewitt [Thu, 3 Feb 2022 19:14:52 +0000 (15:44 -0330)]
status/a11y: Update deprecated icon name

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2155>

4 years agosystemActions: Add a screenshot UI action
Ivan Molodetskikh [Fri, 17 Dec 2021 08:40:43 +0000 (11:40 +0300)]
systemActions: Add a screenshot UI action

It waits for the overview to close because otherwise the screenshot UI
would capture the overview.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2106>

4 years agoUpdate Basque translation
Asier Sarasua Garmendia [Thu, 3 Feb 2022 18:22:09 +0000 (18:22 +0000)]
Update Basque translation

4 years agocalendar-server: Read timezone from the calendar, not its timezone cache
Milan Crha [Wed, 2 Feb 2022 14:34:03 +0000 (15:34 +0100)]
calendar-server: Read timezone from the calendar, not its timezone cache

The calendar's timezone cache holds only timezones already received
or added to the calendar, thus when asking it for a timezone for "the first
time", it returns NULL and a wrong timezone is used instead.
The get_timezone() does not do any I/O when the timezone is already cached
on the client side, thus it's fine to use it.

This could exhibit with non-recurring events, which use custom time zones,
in which case the event is shown in a wrong time.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2145>

4 years agoscreenshot: Move close button to the panel
Ivan Molodetskikh [Wed, 2 Feb 2022 17:22:20 +0000 (20:22 +0300)]
screenshot: Move close button to the panel

CSS and JS adapted from the Overview window close buttons, but with some
style tweaks requested by the designers.

Since the screenshot UI is long-lived (it's created once at startup,
rather than every time it's opened), we need to refresh the close button
position, as it can change at runtime. Subscribing to preference changes
seems to be skipped for bindings generation in Mutter, but simply
refreshing upon opening the UI should do the job.

Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4997

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2147>

4 years agoscreenshot: Close on lock
Ivan Molodetskikh [Wed, 2 Feb 2022 18:11:03 +0000 (21:11 +0300)]
screenshot: Close on lock

Since the screenshot UI cannot open in GDM or on the lock screen, it
seems that simply closing it on any session mode update is sufficient,
without adding extra variables.

Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4996

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2149>

4 years agoUpdate Hebrew translation
Yaron Shahrabani [Thu, 3 Feb 2022 15:18:59 +0000 (15:18 +0000)]
Update Hebrew translation

4 years agoUpdate Occitan translation
Quentin PAGÈS [Thu, 3 Feb 2022 09:45:22 +0000 (09:45 +0000)]
Update Occitan translation

4 years agopanel: Remove panel corners
Florian Müllner [Wed, 2 Feb 2022 22:19:12 +0000 (23:19 +0100)]
panel: Remove panel corners

They were a cute gimmick for a decade, now it's time to say
goodbye ... 😢️

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5010

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2151>

4 years agodnd: Drop captured event handler
Carlos Garnacho [Wed, 2 Feb 2022 16:07:42 +0000 (17:07 +0100)]
dnd: Drop captured event handler

This was here exclusively to silence out events from other pointing
devices in the stage. Since ClutterGrab being used now is global to
all devices and events are coerced to an invisible actor, there is
no need to explicitly do this.

Also, this event handler was set on the stage, while the grab happened
on a child, so it was fairly uneffective already.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2146>

4 years agodnd: Make event handler actor reactive
Carlos Garnacho [Wed, 2 Feb 2022 16:05:32 +0000 (17:05 +0100)]
dnd: Make event handler actor reactive

Even though we coerce events on it through a grab, it does require
to be reactive to be considered a keyboard focus. Make it reactive
so it can handle key events again.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5005
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2146>

4 years agoUpdate Portuguese translation
Hugo Carvalho [Tue, 1 Feb 2022 16:04:52 +0000 (16:04 +0000)]
Update Portuguese translation

4 years agopopupMenu: Ensure to let focus manager handle key events
Carlos Garnacho [Tue, 1 Feb 2022 13:33:03 +0000 (14:33 +0100)]
popupMenu: Ensure to let focus manager handle key events

Since the grab no longer lets events bubble up to the stage unstopped,
we should be forwarding the key events that bubbled up to the dialog
to maybe cycle focus.

Fixes broken keyboard navigation in several context menus around the
shell, other than the panel ones.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2140>

4 years agomodalDialog: Ensure to let focus manager handle key events
Carlos Garnacho [Tue, 1 Feb 2022 13:31:37 +0000 (14:31 +0100)]
modalDialog: Ensure to let focus manager handle key events

Since the grab no longer lets events bubble up to the stage unstopped,
we should be forwarding the key events that bubbled up to the dialog
to maybe cycle focus.

Fixes focus cycling on keyboard navigation inside dialogs.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2140>

4 years agoendSessionDialog: Connect to events in the dialog itself
Carlos Garnacho [Tue, 1 Feb 2022 13:12:17 +0000 (14:12 +0100)]
endSessionDialog: Connect to events in the dialog itself

Connecting to stage events won't work from a modal dialog, since the
grab will take events from the portions of the actor hierarchy above
the grabbing actor.

Connect to events from the dialog itself, so that the end session
dialog can again show the "boot options" easter egg.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2140>

4 years agograbHelper: Fix handling of events within the grabbed actor
Carlos Garnacho [Mon, 31 Jan 2022 11:16:47 +0000 (12:16 +0100)]
grabHelper: Fix handling of events within the grabbed actor

Commit d92b71d2b2 went overeager in the removal of the additional
actors that were allowed to handle events (since the new grab
infrastructure makes them unable to see events in the first place),
and removed an early return in the captured event handler meant to
let events go through in those cases.

Since the grabbing actor was also part of this group, this was also
the code path where child actors of the grabbing actor could handle
events. Removing these made the captured event handler eat most
events meant for children. Add this check back, specifically for the
grabbing actor.

While at it, explicitly check (and propagate) crossing events,
since these are now enforced to be propagated (and warned about) in
Mutter.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4991
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2140>

4 years agostatus/a11y: Use the new high-contrast gsettings key
Alexander Mikhaylenko [Sun, 19 Dec 2021 16:30:00 +0000 (21:30 +0500)]
status/a11y: Use the new high-contrast gsettings key

With the new boolean setting, the "High Contrast" toggle can now
simply toggle the setting instead of the current gtk/icon-theme
shenanigans.

This isn't only much simpler, but will also make switching between
high-contrast and a non-default theme reliable at last.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2069>

4 years agost/settings: Switch icon-theme when "high-contrast" is active
Florian Müllner [Wed, 5 Jan 2022 18:29:08 +0000 (19:29 +0100)]
st/settings: Switch icon-theme when "high-contrast" is active

This is in line with how GTK handles the setting. Since we are not
using GtkSettings for the icon theme, we have to replicate the
behavior ourselves.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2069>

4 years agost/settings: Use the new high-contrast gsettings key
Alexander Mikhaylenko [Sun, 19 Dec 2021 16:29:51 +0000 (21:29 +0500)]
st/settings: Use the new high-contrast gsettings key

We now have a dedicated "high-contrast" setting that we can
use instead of a "magic" theme name.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2069>

4 years agoworkspace: Fix a signal leak in WorkspaceBackground
Daniel van Vugt [Fri, 21 Jan 2022 10:47:09 +0000 (18:47 +0800)]
workspace: Fix a signal leak in WorkspaceBackground

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2143>

4 years agoUpdate Japanese translation
sicklylife [Tue, 1 Feb 2022 12:08:55 +0000 (12:08 +0000)]
Update Japanese translation

(cherry picked from commit 9a877a30ad75369b53044bd768abd8ff858e791c)

4 years agoUpdate Japanese translation
sicklylife [Tue, 1 Feb 2022 12:03:24 +0000 (12:03 +0000)]
Update Japanese translation

(cherry picked from commit 8f2bc9bb3eade3693f0f09b5bd5c48c0c7a81031)

4 years agoUpdate Russian translation
Aleksandr Melman [Tue, 1 Feb 2022 06:48:52 +0000 (06:48 +0000)]
Update Russian translation

4 years agoUpdate Galician translation
Fran Dieguez [Mon, 31 Jan 2022 23:26:11 +0000 (23:26 +0000)]
Update Galician translation

4 years agoswipeTracker: Ignore Meta key while workspace scroll gesture is in progress
kyte [Mon, 31 Jan 2022 21:59:49 +0000 (03:29 +0530)]
swipeTracker: Ignore Meta key while workspace scroll gesture is in progress

Workspace transition stopped midway when the Meta key
was released while the two-finger scroll gesture was
in progress. This commit ignores the Meta key once
the gesture has been confirmed and is in motion.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2135>

4 years agoUpdate Slovenian translation
Matej Urbančič [Mon, 31 Jan 2022 21:21:06 +0000 (21:21 +0000)]
Update Slovenian translation

4 years agoscreenshot: Enable opacity redirect for the panel
Ivan Molodetskikh [Mon, 31 Jan 2022 07:58:49 +0000 (10:58 +0300)]
screenshot: Enable opacity redirect for the panel

This makes the panel look correct when it fades out (e.g. while dragging
the area selection around or while the screenshot UI is fading in and
out).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2138>

4 years agoscreenshot: Remove _dragDevice
Ivan Molodetskikh [Mon, 31 Jan 2022 08:49:40 +0000 (11:49 +0300)]
screenshot: Remove _dragDevice

It went unused since
https://gitlab.gnome.org/GNOME/gnome-shell/-/commit/21cc534add54761bf19fe402ddb71af72bdc922c

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2139>

4 years agoUpdate Chinese (China) translation
Luming Zh [Mon, 31 Jan 2022 03:13:29 +0000 (03:13 +0000)]
Update Chinese (China) translation

4 years agoUpdate Icelandic translation
Sveinn í Felli [Sun, 30 Jan 2022 15:27:30 +0000 (15:27 +0000)]
Update Icelandic translation

(cherry picked from commit 5c2d836e95bbb3e1ef2330354a3f951998e26b0f)

4 years agoUpdate Brazilian Portuguese translation
Matheus Barbosa [Sat, 29 Jan 2022 22:47:53 +0000 (22:47 +0000)]
Update Brazilian Portuguese translation

4 years agoUpdate Icelandic translation
Sveinn í Felli [Sat, 29 Jan 2022 20:26:36 +0000 (20:26 +0000)]
Update Icelandic translation

(cherry picked from commit 69446b340da6f75d2ffec17794629ff261f1c6e5)

4 years agoUpdate Icelandic translation
Sveinn í Felli [Sat, 29 Jan 2022 20:19:19 +0000 (20:19 +0000)]
Update Icelandic translation

(cherry picked from commit d4f24181e3a09a8cc8ddc6e153c02fc746203474)

4 years agoUpdate Icelandic translation
Sveinn í Felli [Sat, 29 Jan 2022 17:43:43 +0000 (17:43 +0000)]
Update Icelandic translation

(cherry picked from commit 1441bb9c65e5fd2b19f74a83cb5a568ecb8c25ba)

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sat, 29 Jan 2022 17:25:43 +0000 (17:25 +0000)]
Update Ukrainian translation

4 years agoscreenshot-ui: Put screencasts into a subdirectory
Ivan Molodetskikh [Fri, 17 Dec 2021 07:17:52 +0000 (10:17 +0300)]
screenshot-ui: Put screencasts into a subdirectory

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2103>

4 years agoscreenshot-ui: Add screencast done notification
Ivan Molodetskikh [Fri, 17 Dec 2021 06:40:57 +0000 (09:40 +0300)]
screenshot-ui: Add screencast done notification

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2103>

4 years agoscreenshot-ui: Add screencast area indicator
Ivan Molodetskikh [Sat, 27 Nov 2021 13:31:19 +0000 (16:31 +0300)]
screenshot-ui: Add screencast area indicator

It shows the screencast area during recording.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2103>

4 years agoscreenshot-ui: Add area and screen recording
Ivan Molodetskikh [Mon, 11 Oct 2021 05:47:21 +0000 (08:47 +0300)]
screenshot-ui: Add area and screen recording

It works by passing the selected area to org.gnome.Shell.ScreencastArea.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2103>

4 years agostatus/remote-access: Add menu for stopping screencasts
Ivan Molodetskikh [Tue, 17 Aug 2021 07:58:23 +0000 (10:58 +0300)]
status/remote-access: Add menu for stopping screencasts

This is specifically for stopping the screenshot UI screencasts for now.
It's possible to stop arbitrary screen recording handles, however due to
an issue with pipewiresrc, this method cannot currently work for cleanly
stopping Shell's own screen recordings. Hence the best we can do is to
handle just the screenshot UI screencasts to let them stop cleanly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2103>

4 years agoscreenshot-ui: Add a screencast in progress property
Ivan Molodetskikh [Sat, 27 Nov 2021 07:41:24 +0000 (10:41 +0300)]
screenshot-ui: Add a screencast in progress property

The screen recording menu entry will use this to check if a screencast
is currently active and to stop the screencast.

Use a GObject property so we can bind to notify; specifically we'll bind
the visibility of a screencast area indicator.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2103>

4 years agoscreenshot-ui: Bind button to shot/cast
Ivan Molodetskikh [Thu, 9 Dec 2021 19:28:10 +0000 (22:28 +0300)]
screenshot-ui: Bind button to shot/cast

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2103>

4 years agoscreenshot: Assign names to several CSS expressions
Ivan Molodetskikh [Fri, 28 Jan 2022 19:53:38 +0000 (22:53 +0300)]
screenshot: Assign names to several CSS expressions

This commit replaces a few of the screenshot UI CSS expressions with
named variables.

The shot-cast margin is not defined, but rather set to the value it ends
up equal to, given the panel padding and the capture button's
sizes + position, which would be a bit awkward to compute here. It ends
up slightly larger than the general panel padding due to the capture
button being larger than other elements, and due to having to
center-align the shot-cast container to the capture button.

The shot-cast container border radius is defined as 12px, then the panel
border radius is computed from the shot-cast border radius + margin,
then the type button border radius is computed from panel
border radius - padding.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2103>

4 years agoscreenshot-ui: Add screenshot/screencast toggle
Ivan Molodetskikh [Mon, 16 Aug 2021 15:16:11 +0000 (18:16 +0300)]
screenshot-ui: Add screenshot/screencast toggle

Currently does nothing. When we're in screencast mode, we hide the
screenshot preview because screencast doesn't start until the capture
button is pressed.

The window selection is currently left as is, but it should probably be
changed to something closer to a real overview, showing windows in
real-time.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2103>

4 years agoshell: Drop shell_global_begin/end_modal()
Carlos Garnacho [Fri, 19 Nov 2021 13:36:53 +0000 (14:36 +0100)]
shell: Drop shell_global_begin/end_modal()

These are no longer used nor necessary, we now use have ClutterGrab()
which notify the internals about the changes in event handling.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2046>

4 years agograbHelper: Drop addActor/removeActor calls
Carlos Garnacho [Fri, 19 Nov 2021 12:31:16 +0000 (13:31 +0100)]
grabHelper: Drop addActor/removeActor calls

These no longer do what they meant to do, and are now unused.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2046>

4 years agoappDisplay: Drop grabHelper.addActor() call
Carlos Garnacho [Fri, 19 Nov 2021 12:28:48 +0000 (13:28 +0100)]
appDisplay: Drop grabHelper.addActor() call

This no longer does what it advertises to do, the folder dialog
is already modal and handles clicks outside to dismiss the dialog,
so this does not seem necessary either.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2046>

4 years agojs/main: Add docs to private function
Carlos Garnacho [Sat, 29 Jan 2022 00:14:56 +0000 (01:14 +0100)]
js/main: Add docs to private function

Oh, well...

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agoscreenshot: Port to Clutter.Grab
Carlos Garnacho [Fri, 28 Jan 2022 11:13:45 +0000 (12:13 +0100)]
screenshot: Port to Clutter.Grab

Stop using device/sequence grabs for corner handles. Also
make the toplevel actor reactive, so it can handle the key events
it means to.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agodialog: Handle key events on self
Carlos Garnacho [Fri, 28 Jan 2022 10:59:51 +0000 (11:59 +0100)]
dialog: Handle key events on self

And set the dialog actor reactive. Specifically, we do not know whether
the parent actor is reactive or not, and we should not be changing that
from here, so do not use that actor to handle key events.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agojs: Change main.pushModal to return the Clutter.Grab handle
Carlos Garnacho [Thu, 25 Nov 2021 09:49:42 +0000 (10:49 +0100)]
js: Change main.pushModal to return the Clutter.Grab handle

All callers have been updated to keep this handle to identify their
own grab.

Also, optionally use the windowing state to determine whether
the grab is suitable for the specific uses. This removes the need
to trying to grab twice in the places where we settle for a keyboard
grab.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agopopupMenu: Refactor focus and key management
Carlos Garnacho [Thu, 18 Nov 2021 00:22:33 +0000 (01:22 +0100)]
popupMenu: Refactor focus and key management

With the presence of Clutter.grab(), this behaves differently enough
that needs some redoing. The larger difference is what actors are
eligible for handling events.

In the older code, a PopupMenuManager would ask the grabHelper to
capture events from all the stage, and selectively silence events
on any actor that is not the currently shown popup menu or the
"source" actor for any other popup in the group (i.e. those that
would pop up another menu).

But we don't want to just silence events, we want to emit the
correct set of crossing events when a popup menu is shown or closed,
this requires a backing ClutterGrab() on the currently shown menu.
Since the presence of a grab also affects the ability to have actors
outside the grab area to handle events, the PopupMenuManager now
must detect hovering and focus changes to other menu sources by
handling events on the grabbed popup itself.

Redo the grabbing over Main.pushModal/popModal (i.e. ClutterGrab,
plus keyboard focus restoration) and a captured event handler on
the currently shown menu, to make PopupMenuManager behave as it
is expected with this new kind of grabs.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agopopupMenu: Drop unused blockSourceEvents switch
Carlos Garnacho [Thu, 18 Nov 2021 00:16:43 +0000 (01:16 +0100)]
popupMenu: Drop unused blockSourceEvents switch

This could be used to selectively ignore events on the source
actor, but is now unused.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agograbHelper: Use Clutter.grab() underneath
Carlos Garnacho [Wed, 17 Nov 2021 23:56:44 +0000 (00:56 +0100)]
grabHelper: Use Clutter.grab() underneath

This is subject to further possible simplifications. Use Clutter.grab
to redirect input and focus, a fundamental difference here is that
we do redirect input to the topmost owner of the grabhelper stack,
instead of the stage. This is better behaved with the presence of
other grabs, at the cost of some behavioral changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agologinDialog: Perform grab on the stage actor
Carlos Garnacho [Tue, 25 Jan 2022 10:48:55 +0000 (11:48 +0100)]
loginDialog: Perform grab on the stage actor

Despite this grab happening in the dialog, we are also interested in
things happening outside of it. Move this grab to happen in the stage
itself, so the changed grab semantics don't make it impossible to
interact with parts of the login screen.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agopadOsd: Capture events on itself
Carlos Garnacho [Wed, 24 Nov 2021 16:42:41 +0000 (17:42 +0100)]
padOsd: Capture events on itself

This actor is setting itself modal, should also stop listening to
events from above it, since none will be gotten.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agodnd: Use Clutter.grab() for DnD grab
Carlos Garnacho [Wed, 17 Nov 2021 23:41:20 +0000 (00:41 +0100)]
dnd: Use Clutter.grab() for DnD grab

We still listen to an specific device or touch sequence, but we
don't grab it specifically.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agolookingGlass: Use lookingGlass dialog for modal grab
Carlos Garnacho [Wed, 17 Nov 2021 23:38:11 +0000 (00:38 +0100)]
lookingGlass: Use lookingGlass dialog for modal grab

We want the whole dialog to handle events while shown. To compensate
for the entry not being "grabbed", make it take focus when showing.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agooverview: Propagate crossing events in cover pane
Carlos Garnacho [Wed, 12 Jan 2022 16:19:53 +0000 (17:19 +0100)]
overview: Propagate crossing events in cover pane

When animating the overview we temporarily cover it with an actor that
ignores events. This actor should still allow crossing events to go through
as per Mutter requirements.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agooverview: Grab on the stage
Carlos Garnacho [Wed, 17 Nov 2021 23:37:26 +0000 (00:37 +0100)]
overview: Grab on the stage

This is more in line with the places where we want events to be
handled (i.e. all). So make the overview take a grab on the
stage itself.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agomain: Use Clutter.grab() underneath Main.push/popModal
Carlos Garnacho [Wed, 17 Nov 2021 23:36:44 +0000 (00:36 +0100)]
main: Use Clutter.grab() underneath Main.push/popModal

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agoappDisplay: Explicitly highlight selected app icon
Carlos Garnacho [Wed, 17 Nov 2021 23:25:48 +0000 (00:25 +0100)]
appDisplay: Explicitly highlight selected app icon

While the menu is popped up, we artificially keep the icon highlighted
by ensuring it's hovered, and muting events on the app icon until the
menu is popped down.

This is somewhat convoluted and won't work with Clutter.grab(), where
it will be the menu itself that is the owner of input events while
shown, so cut some corners and explicitly tell the app icon to be
highlighted.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agoboxPointer: Do not mute key events while showing
Carlos Garnacho [Wed, 17 Nov 2021 23:18:09 +0000 (00:18 +0100)]
boxPointer: Do not mute key events while showing

We want to mute things like pointers hovering the BoxPointer while
it does open. However keyboard events should still be handled
promptly.

Since Clutter.grab() will involve different actors being grabbed
and focused, this will have some more presence, e.g. when navigating
panel menus. We want to be able to navigate outside a menu while it
is still being shown.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agolookingGlass: Use Clutter.grab() for actor picking
Carlos Garnacho [Wed, 17 Nov 2021 23:13:45 +0000 (00:13 +0100)]
lookingGlass: Use Clutter.grab() for actor picking

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agoauthPrompt: Make actor reactive
Carlos Garnacho [Tue, 25 Jan 2022 17:09:05 +0000 (18:09 +0100)]
authPrompt: Make actor reactive

The actor is non-reactive, but has a key event handler to handle
the Esc key on the auth prompt. Mark this actor as reactive, so
it can handle the events.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agomodalDialog: Make reactive
Carlos Garnacho [Wed, 17 Nov 2021 23:03:08 +0000 (00:03 +0100)]
modalDialog: Make reactive

Some dialogs like the runDialog expect this actor to receive
key events while it is not reactive. Whatever that black magic was
it will no longer work.

Make the actor reactive, so it can simply handle key events.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agoslider: Use Clutter.grab() for implicit grab
Carlos Garnacho [Wed, 17 Nov 2021 23:00:52 +0000 (00:00 +0100)]
slider: Use Clutter.grab() for implicit grab

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

4 years agost: Use ClutterGrab for StScrollBar implicit grab
Carlos Garnacho [Wed, 17 Nov 2021 23:00:26 +0000 (00:00 +0100)]
st: Use ClutterGrab for StScrollBar implicit grab

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>